home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / strategy / colour-y.tgz / colour-y.tar / yahtzee / yahtzee.h < prev   
C/C++ Source or Header  |  1995-10-29  |  472b  |  30 lines

  1. #ifndef _yahtzee_H_
  2. #define _yahtzee_H_
  3.  
  4. #include "config.h"
  5.  
  6. #define MAX_NUMBER_OF_PLAYERS 6
  7. #define MAX_NAME_LENGTH 8
  8. #define NUM_UPPER 6
  9. #define NUM_LOWER 7
  10. #define NUM_FIELDS (NUM_UPPER + NUM_LOWER)
  11.  
  12. #define H_3 6
  13. #define H_4 7
  14. #define H_FH 8
  15. #define H_SS 9
  16. #define H_LS 10
  17. #define H_YA 11
  18. #define H_CH 12
  19.  
  20. typedef struct
  21. {
  22.     char name[MAX_NAME_LENGTH + 1];
  23.     short used[NUM_FIELDS];
  24.     int score[NUM_FIELDS];
  25.     int finished;
  26.     int comp;
  27. } Player;
  28.  
  29. #endif /* _yahtzee_H_ */
  30.